package com.pandora.credit.mongo.service.impl;

import com.pandora.credit.mongo.dao.MongoAnnouncementDao;
import com.pandora.credit.mongo.entity.MongoAnnouncement;
import com.pandora.credit.mongo.service.MongoAnnouncementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author developer
 */
@Service
public class MongoAnnouncementServiceImpl implements MongoAnnouncementService {

    @Autowired
    private MongoAnnouncementDao mongoAnnouncementDao;


    @Override
    public MongoAnnouncement queryById(long id) {
        return mongoAnnouncementDao.selectById(id);
    }
}
